package com.cbb.springcloud.dao;

import com.cbb.springcloud.common.entity.PaymentEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 支付 DAO
 *
 * @author chaibb
 * @date 2021-07-12 19:36:15
 */
@Mapper
public interface PaymentDao {

    /**
     * 新增
     *
     * @author chaibb
     * @date 2021-07-12 19:52:32
     */
    Integer insert(PaymentEntity payment);

    /**
     * 根据 id 查看详情
     *
     * @author chaibb
     * @date 2021-07-12 19:53:18
     */
    PaymentEntity getPaymentById(@Param("id")Long id);
}
